﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Master_Default : System.Web.UI.MasterPage
{
    #region Variables
    protected string strPageHeader = String.Empty;
    #endregion

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            LoadPageHeaders();
           
        }
        catch (Exception ex)
        {
            Response.Write("<script>alert('ERROR :" + ex.Message.ToString() + "');</script>");
        }

    }
    private void LoadPageHeaders()
    {
        string strHeaderId = String.Empty;
        string strCssClass = "current";

        strHeaderId = Request.QueryString["Header"];
        strPageHeader += " <ul>";
        if (strHeaderId != null && strHeaderId =="RozgarHome")
        {
            strPageHeader += "<li><a href='Default.aspx?Header=RozgarHome' class='" + strCssClass + "'>Home</a></li>";

        }
        else
        {
            strPageHeader += "<li><a href='Default.aspx?Header=RozgarHome'>Home</a></li>";

        }
        if (strHeaderId != null && strHeaderId == "RozgarAbout")
        {
            strPageHeader += "<li><a href='AboutRozgarStreet.aspx?Header=RozgarAbout' class='" + strCssClass + "'>About Us</a></li>";

        }
        else
        {
            strPageHeader += "<li><a href='AboutRozgarStreet.aspx?Header=RozgarAbout'>About Us</a></li>";

        }
        if (strHeaderId != null && strHeaderId == "RozgarJobs")
        {
            strPageHeader += "<li><a href='JobOpenings.aspx?Header=RozgarJobs' class='" + strCssClass + "'>Jobs</a></li>";

        }
        else
        {
            strPageHeader += "<li><a href='JobOpenings.aspx?Header=RozgarJobs'>Jobs</a></li>";

        }
        if (strHeaderId != null && strHeaderId == "RozgarServices")
        {
            strPageHeader += "<li><a href='RozgarStreetServices.aspx?Header=RozgarServices' class='" + strCssClass + "'>Services</a></li>";

        }
        else
        {
            strPageHeader += "<li><a href='RozgarStreetServices.aspx?Header=RozgarServices'>Services</a></li>";

        }
        if (strHeaderId != null && strHeaderId == "RozgarContact")
        {
            strPageHeader += "<li><a href='ContactRozgarStreet.aspx?Header=RozgarContact' class='" + strCssClass + "'>Contact</a></li>";

        }
        else
        {
            strPageHeader += "<li><a href='ContactRozgarStreet.aspx?Header=RozgarContact'>Contact</a></li>";

        }
        strPageHeader += " </ul>";

    }
}
